<!-- inc:frame.top -->

<div class="position"><p><!-- inc:position --> &raquo; <a href="{:$mainlink}?file=category&act=list&sysgroupid={:$sysgroupid}">{:$group[groupname]}</a> &raquo; <!-- if($act=="add") -->添加内容<!-- else -->编辑内容<!-- end --></p><!-- inc:position.fr --></div>

<div class="page_pad">
  <form method="post" action="{:$mainlink}?file=msg&act=viewok&sysgroupid={:$sysgroupid}" onsubmit="return chkadd(this);">
  <div class="content_add"><button class="gbutton gbutton_dblue gbutton_add creat_button" type="submit"><!-- if($act=="add") -->添加<!-- else -->保存<!-- end --></button> &nbsp; <!-- if($proID) --><button class="gbutton gbutton_add" type="button" onclick="qgurl('{:$mainlink}?file=msg&act=list&sysgroupid={:$sysgroupid}&proID={:$proID}&cateid={:$cateid}');">返回</button><!-- else --><button type="button" class="gbutton gbutton_add" onclick="qgurl('{:$mainlink}?file=msg&act=list&sysgroupid={:$sysgroupid}{if($cateid)}&cateid={:$cateid}{end}')">返回</button><!-- end --> &nbsp; <span class="show_step" style="color:red;"><img src="images/loading.gif" style="visibility:hidden;" /></span></div>
  
  <input type="hidden" value="{:$id}" name="id" id="id" />
  <div class="content_box">
    <div class="content_bor">
      <ul class="tabul">
        <li onclick="tabs(this,'tabbasic')" class="tabon"><a href="javascript:void(0)">基本信息</a></li>
        <!-- if($fieldlist) -->
        <li onclick="tabs(this,'tabfield')"><a href="javascript:void(0)">扩展信息</a></li>
        <!-- end -->
        <li onclick="tabs(this,'tabseo')"><a href="javascript:void(0)">SEO信息</a></li>
        <!-- if($group[is_chain]) -->
        <li onclick="tabs(this,'tabchain')"><a href="javascript:void(0)">关联内容</a></li>
        <!-- end -->
        <div class="clear"></div>
      </ul>
      
      <div id="tabbasic" class="tabdiv tabshow">
      <table class="ctable">

        <!-- if($rs[user_id] >0 ) -->
        <tr>
          <td class="left">发布会员： </td>
          <td class="right"><input class="ginput ginput_long" type="text"  readonly value="{:get_user_name($rs[user_id])}" /></td>
        </tr>
        <!-- end -->


        <!-- if($system[jianti] == on) -->
        <tr>
          <td class="left">简体主题：<span style="color:red;">*</span></td>
          <td class="right"><input class="ginput ginput_long" type="text" name="subject" id="subject" value="{:$rs[subject]}" /></td>
        </tr>
        <!-- end -->
        <!-- if($system[fanti] == on) -->
        <tr>
          <td class="left">繁体标题：<span style="color:red;">*</span></td>
          <td class="right"><input class="ginput ginput_long" type="text" name="subject_ft" id="subject_ft" value="{:$rs[subject_ft]}" /></td>
        </tr>
        <!-- end -->
        <!-- if($system[english] == on) -->
        <tr>
          <td class="left">英文标题：<span style="color:red;">*</span></td>
          <td class="right"><input class="ginput ginput_long" type="text" name="subject_en" id="subject_en" value="{:$rs[subject_en]}" /></td>
        </tr>
        <!-- end -->
        <!-- if($proID) -->
        <input type="hidden" name="cateid" id="cateid" value="{:$cateid}" />
        <input type="hidden" name="additonid" id="additonid" value="{:$proID}" />
        <!-- else -->
        <tr>
          <td class="left">分类：<span style="color:red;">*</span></td>
          <td class="right">
            <select name="cateid" id="cateid">
              <option value="0" style="color:red;">请选择一个{:$group[groupname]}分类</option>
              <!-- $catelist AS $key=>$value -->
              <option value="{:$value[id]}"{if($value[id] == $cateid)} selected{end}>{:$value[space]}{:$value[catename]}&nbsp;|&nbsp;{:$value[catename_en]}&nbsp;|&nbsp;{:$value[catename_ft]}</option>
              <!-- end -->
              <!-- run:unset($catelist) -->
            </select>
            &nbsp;
            <span>[请选择一个分类]</span>
          </td>
        </tr>
        <!-- end -->
        <tr>
          <td class="left">审核：</td>
          <td class="right"><input type="radio" name="ifcheck" value="1"{if(!$id)} checked{else}{if($rs[ifcheck]==1)} checked{end}{end}>已审核 <input type="radio" name="ifcheck" value="0"{if($id && $rs[ifcheck]==0)} checked{end}>未审核 <span>[未审核信息在前台无法看到]</span></td>
        </tr>
        <tr style="display:none;">
          <td class="left">是否首页推荐：</td>
          <td class="right"><input type="radio" name="isrecommend" value="1"{if($id && $rs[isrecommend]==1)} checked{end}>是 <input type="radio" name="isrecommend" value="0"{if(!$id)} checked{else}{if($rs[isrecommend]==0)} checked{end}{end}>否 <span>[是推荐之后，首页会出现对应的产品]</span></td>
        </tr>
        <tr style="display:none;">
          <td class="left">属性：</td>
          <td class="right">
            <input type="checkbox" name="isvouch" value="1"{if($rs[isvouch] && $rs[isvouch]!=0)} checked{end}>新品推荐
            &nbsp;
            <span>[如果打钩了只能在新品展示页面显示,请注意钩选]</span>
          </td>
        </tr>
        <tr style="display:none;">
          <td class="left">内容权限：</td>
          <td class="right">
            <select name="levelid" id="levelid">
              <option value="0"{if($rs[levelid] == 0)} selected{end}>游客可见</option>
              <option value="1"{if($rs[levelid] == 1)} selected{end}>普通会员可见</option>
              <option value="2"{if($rs[levelid] == 2)} selected{end}>中级会员可见</option>
              <option value="3"{if($rs[levelid] == 3)} selected{end}>VIP会员可见</option>
              <option value="4"{if($rs[levelid] == 4)} selected{end}>内部工作人员可见</option>
            </select>
          </td>
        </tr>
        <!-- if($group[is_tplfile]) -->
        <tr>
          <td class="left">自定义模板：</td>
          <td class="right">
            <input class="ginput" type="text" name="tplfile" id="tplfile" value="{:$rs[tplfile]}" />
            &nbsp;
            [主题自定义模板，不包含后缀]
          </td>
        </tr>
        <!-- end -->
        <!-- if($group[is_tags]) -->
        <tr>
          <td class="left">主题标签：</td>
          <td class="right">
            <input class="ginput" type="text" name="tags" id="tags" value="{:$rs[tags]}" />
            &nbsp;
            <span>多个标签用英文逗号分隔</span>
          </td>
        </tr>
        <!-- end -->
        <!-- if($group[is_thumb]) -->
        <tr>
          <td class="left">图片：</td>
          <td class="right">
            <div id="rsdpic"><img id="rsdimg" src="{:$rsd[folder]}{:$rsd[thumbfile]}" style="{if($rsd[thumbfile])}height:100px;{else}height:0;{end} cursor:pointer" onclick="preview_thumb();" /></div>
            <span><button class="gbutton gbutton_min" type="button" onclick="qg_openthumb();">产品图</button></span>
            <span id="del_thumb" style="display:none;">
            <button class="gbutton gbutton_min" type="button" onclick="preview_thumb();">预览</button>
            <button class="gbutton gbutton_min" type="button" onclick="delete_thumb();">删除</button>
            </span>
            <input type="hidden" name="thumb" id="thumb" value="{:$rs[thumb]}" />
            &nbsp;
            <span>[仅支持一张产品图]</span>
          </td>
        </tr>
        <tr style="display:none;">
          <td class="left">图片2：</td>
          <td class="right">
            <div id="rsdpic2"><img id="rsdimg2" src="{:$rsd2[folder]}{:$rsd2[thumbfile]}" style="{if($rsd2[thumbfile])}height:100px;{else}height:0;{end} cursor:pointer" onclick="preview_thumb(2);" /></div>
            <span><button class="gbutton gbutton_min" type="button" onclick="qg_openthumb(2);">图片2</button></span>
            <span id="del_thumb2" style="display:none;">
            <button class="gbutton gbutton_min" type="button" onclick="preview_thumb(2);">预览</button>
            <button class="gbutton gbutton_min" type="button" onclick="delete_thumb(2);">删除</button>
            </span>
            <input type="hidden" name="thumb2" id="thumb2" value="{:$rs[thumb2]}" />
            &nbsp;
            <span>[仅支持一张产品图]</span>
          </td>
        </tr>
        <tr style="display:none;">
          <td class="left">图片3：</td>
          <td class="right">
            <div id="rsdpic3"><img id="rsdimg3" src="{:$rsd3[folder]}{:$rsd3[thumbfile]}" style="{if($rsd3[thumbfile])}height:100px;{else}height:0;{end} cursor:pointer" onclick="preview_thumb(3);" /></div>
            <span><button class="gbutton gbutton_min" type="button" onclick="qg_openthumb(3);">图片3</button></span>
            <span id="del_thumb3" style="display:none;">
            <button class="gbutton gbutton_min" type="button" onclick="preview_thumb(3);">预览</button>
            <button class="gbutton gbutton_min" type="button" onclick="delete_thumb(3);">删除</button>
            </span>
            <input type="hidden" name="thumb3" id="thumb3" value="{:$rs[thumb3]}" />
            &nbsp;
            <span>[仅支持一张产品图]</span>
          </td>
        </tr>
        <!-- end -->
      </table>
      <div id="preview_photo"></div> 
      <!-- 加载内容编辑器信息 -->
      <input type="hidden" id="sysid" value="{:$sysgroupid}" />
      <script>
      var sysid = document.getElementById("sysid").value;
      </script>
      <table class="ctable">
        <tr>
          <td class="left">内容：</td>
          <td class="right">
            <!-- if($_SESSION[admin][editorid]==0) -->
            <!-- inc:xheditor.qg -->
            <!-- elseif($_SESSION[admin][editorid]==1) -->
            <!-- inc:editorue.qg -->
            <!-- end -->
          </td>
        </tr>
      </table>
      
      <!-- if($act=="modify") -->
      <table class="ctable">
        <tr>
          <td class="left">点击率：</td>
          <td class="right"><input class="ginput" type="text" name="hits" id="hits" value="{:$rs[hits]}" /></td>
        </tr>
        
        <tr>
          <td class="left">发布时间：</td>
          <td class="right">
            <input class="ginput" type="text" name="postdate" id="postdate" value="{run:echo date('Y-m-d H:i:s',$rs[postdate])}" />
            &nbsp;
            <span>[一般不用修改发布时间]</span>
          </td>
        </tr>
      </table>
      <!-- end -->
      </div><!--basic-->
      
      <!-- if($fieldlist) -->
      <input type="hidden" name="isfield" value="1" />
      <div id="tabfield" class="tabdiv">
        <table class="ctable">
        <!-- $fieldlist AS $key=>$value -->
        <tr>
          <td class="left">{:$value[field_name]}：</td>
          <td class="right">
            <!--文本框-->
            <!-- if($value[field_type]=="text") -->
            <!-- if($value[ifshare]==1) -->
            <input class="ginput" type="text" name="field_text[cn][{:$value[sign]}]" value="{:$value[field_content]}" />
            <!-- else -->
            <!--if($system[jianti] == on) -->
            <input class="ginput" type="text" name="field_text[cn][{:$value[sign]}]" value="{:$value[field_content]}" placeholder="简体" />
            <!-- end -->
            <!--if($system[english] == on) -->
            <input class="ginput" type="text" name="field_text[en][{:$value[sign]}]" value="{:$value[field_content_en]}" placeholder="英文" />
            <!-- end -->
            <!--if($system[fanti] == on) -->
            <input class="ginput" type="text" name="field_text[ft][{:$value[sign]}]" value="{:$value[field_content_ft]}" placeholder="繁体" />
            <!-- end -->
            <!-- end -->
            <!--文本框-->
            
            <!--下拉框-->
            <!-- elseif($value[field_type]=="select") -->
            <select name="field_text[cn][{:$value[sign]}]">
              <option></option>
              <!-- $value[options] AS $key2=>$value2 -->
              <option {if($value[field_content]==$value2[inputval])}selected="selected"{end}>{:$value2[inputval]}</option>
              <!-- end -->
            </select>
            <!--下拉框-->
            
            <!--复选框-->
            <!-- elseif($value[field_type]=="checkbox") -->
            <div id="field_content_cn_{:$value[sign]}">
            <input id="field_checkbox_{:$value[sign]}" type="hidden" name="field_text[cn][{:$value[sign]}]" value="{:$value[field_content]}" />
            <!-- $value[options] AS $key2=>$value2 -->
            <input type="checkbox" onchange="field_checkbox_val('{:$value2[inputval]}')" value="{:$value2[inputval]}" {if($value2[checked])}checked="checked"{end} />{:$value2[inputval]}&nbsp;&nbsp;
            <!-- end -->
            &nbsp;&nbsp;
            <a href="javascript:void(0)" onclick="select_all('field_content_cn_{:$value[sign]}');field_checkbox_val();">全选</a>&nbsp;&nbsp;
            <a href="javascript:void(0)" onclick="revCheck('field_content_cn_{:$value[sign]}');field_checkbox_val();">反选</a>&nbsp;&nbsp;
            <a href="javascript:void(0)" onclick="selectNone('field_content_cn_{:$value[sign]}');field_checkbox_val();">全不选</a>
            <script>
			function field_checkbox_val(val)
			{
				html = "";
				objs = document.getElementById("field_content_cn_{:$value[sign]}").getElementsByTagName("input");
				for(var i=0; i<objs.length; i++)
				{
					if(objs[i].type.toLowerCase() == "checkbox" )
					{
						if(objs[i].checked == true)
						{
							html += objs[i].value+",";
						}
					}
				}
				if(html!="")
				{
					html = html.substr(0, html.length - 1);  
				}
				document.getElementById("field_checkbox_{:$value[sign]}").value=html;
			}
            </script>
            </div>
            <!--复选框-->
            
            <!--文本域-->
            <!-- elseif($value[field_type]=="textarea") -->
            <!-- if($value[ifshare]==1) -->
            <textarea class="gtext gtext_field" name="field_text[cn][{:$value[sign]}]">{:$value[field_content]}</textarea>
            <!-- else -->
            
            <!--if($system[jianti] == on) -->
            <textarea class="gtext gtext_field" name="field_text[cn][{:$value[sign]}]" placeholder="简体">{:$value[field_content]}</textarea>
            <!-- end -->
            <!--if($system[english] == on) -->
            <textarea class="gtext gtext_field" name="field_text[en][{:$value[sign]}]" placeholder="英文">{:$value[field_content_en]}</textarea>
            <!-- end -->
            <!--if($system[fanti] == on) -->
            <textarea class="gtext gtext_field" name="field_text[ft][{:$value[sign]}]" placeholder="繁体">{:$value[field_content_ft]}</textarea>
            <!-- end -->
            <!-- end -->
            <!--文本域-->
            
            <!--编辑器-->
            <!-- elseif($value[field_type]=="editor") -->
            <!--用于加载多个ueditor编辑器会导致网页打开很慢，所以自定义字段编辑器用只使用xheditor编辑器-->
            <!-- if($_SESSION[admin][editorid]==1) -->
            <script type="text/javascript" src="include/xheditor/xheditor-1.1.14-zh-cn.min.js"></script>
			<script type="text/javascript" src="include/xheditor/xheditor.config.js"></script>
            <!-- end -->
            <!-- if($value[ifshare]==1) -->
            <script type="text/javascript">
			var editor_field;
			$(pageInit);
			function pageInit()
			{
				editor_field=$("#field_content_cn_{:$value[sign]}").xheditor(tools);
			}
            </script>
            <textarea id="field_content_cn_{:$value[sign]}" name="field_text[cn][{:$value[sign]}]" style="width:100%;">{:$value[field_content]}</textarea>
            <!-- else -->
            
            <script type="text/javascript">
			<!-- if($system[jianti] == on) -->
			var editor_field;
			$(pageInit_field);
			function pageInit_field()
			{
				editor_field=$("#field_content_cn_{:$value[sign]}").xheditor(tools);
			}
			<!-- end -->
			<!-- if($system[english] == on) -->
			var editor_field_en;
			$(pageInit_field_en);
			function pageInit_field_en()
			{
				editor_field_en=$('#field_content_en_{:$value[sign]}').xheditor(tools);
			}
			<!-- end -->
			<!-- if($system[fanti] == on) -->
			var editor_field_ft;
			$(pageInit_field_ft);
			function pageInit_field_ft()
			{
				editor_field_en=$('#field_content_ft_{:$value[sign]}').xheditor(tools);
			}
			<!-- end -->
            </script>
            <div class="menu1box">
              <ul>
                <!-- if($system[jianti]==on) --><li class="tabon" onclick="tabs(this,'editorue_cn_{:$value[sign]}')"><a href="javascript:void(0)">简体内容</a></li><!-- end -->
                <!-- if($system[english]==on) --><li onclick="tabs(this,'editorue_en_{:$value[sign]}')"><a href="javascript:void(0)">英文内容</a></li><!-- end -->
                <!-- if($system[fanti]==on) --><li onclick="tabs(this,'editorue_ft_{:$value[sign]}')"><a href="javascript:void(0)">繁体内容</a></li><!-- end -->
                <div class="clear"></div>
              </ul>
            </div>
            
            <!-- if($system[jianti] == on) -->
            <div id="editorue_cn_{:$value[sign]}" class="tabdiv tabshow"><textarea id="field_content_cn_{:$value[sign]}" name="field_text[cn][{:$value[sign]}]" style="width:100%;">{:$value[field_content]}</textarea></div>
            <!-- end -->
            <!-- if($system[english] == on) -->
            <div id="editorue_en_{:$value[sign]}" class="tabdiv"><textarea id="field_content_en_{:$value[sign]}" name="field_text[en][{:$value[sign]}]" style="width:100%;">{:$value[field_content_en]}</textarea></div><!-- end -->
            <!-- if($system[fanti] == on) -->
            <div id="editorue_ft_{:$value[sign]}" class="tabdiv"><textarea id="field_content_ft_{:$value[sign]}" name="field_text[ft][{:$value[sign]}]" style="width:100%;">{:$value[field_content_ft]}</textarea></div><!-- end -->
            <!-- end -->
            <!--编辑器-->
            
            <!--日期-->
            <!-- elseif($value[field_type]=="date") -->
            <link href="css/laydate.css" type="text/css" rel="stylesheet" />
			<script src="js/laydate.js"></script>
            <!-- if($value[ifshare]==1) -->
            <input id="field_content_cn_{:$value[sign]}" class="ginput" type="text" name="field_text[cn][{:$value[sign]}]" value="{:$value[field_content]}" readonly="readonly" />
            <script>
			laydate.render({
				elem: '#field_content_cn_{:$value[sign]}',
				theme: '#3a6ea5'
			});
            </script>
            <!-- else -->
            <!--if($system[jianti] == on) -->
            <input id="field_content_cn_{:$value[sign]}" class="ginput" type="text" name="field_text[cn][{:$value[sign]}]" value="{:$value[field_content]}" placeholder="简体" readonly="readonly" />
            <script>
			laydate.render({
				elem: '#field_content_cn_{:$value[sign]}',
				theme: '#3a6ea5'
			});
            </script>
            <!-- end -->
            <!--if($system[english] == on) -->
            <input id="field_content_en_{:$value[sign]}" class="ginput" type="text" name="field_text[en][{:$value[sign]}]" value="{:$value[field_content_en]}" placeholder="英文" readonly="readonly" />
            <script>
			laydate.render({
				elem: '#field_content_en_{:$value[sign]}',
				theme: '#3a6ea5'
			});
            </script>
            <!-- end -->
            <!--if($system[fanti] == on) -->
            <input id="field_content_ft_{:$value[sign]}" class="ginput" type="text" name="field_text[ft][{:$value[sign]}]" value="{:$value[field_content_ft]}" placeholder="繁体" readonly="readonly" />
            <script>
			laydate.render({
				elem: '#field_content_ft_{:$value[sign]}',
				theme: '#3a6ea5'
			});
            </script>
            <!-- end -->
            <!-- end -->
            <!--日期-->
            
            <!--附件-->
            <!-- elseif($value[field_type]=="file") -->
            <script type="text/javascript">		
			function field_openufile(id)
			{
				var inputname = "field_file_"+id;
				var url = "{:$mainlink}?file=open.upfiles&act=add&inputname="+inputname;
				qg_open(url,"540");
			}
			function preview_field(id)
			{
				var values = document.getElementById("field_file_"+id).value;
				var url = "{:$mainlink}?file=open.viewpic&id="+values+"&type=thumb";
				qg_open(url,"500");
			}
			function delete_field(id)
			{
				document.getElementById("field_file_"+id).value = "";
				document.getElementById("del_field_file_"+id).style.display = "none";
			}
			function chk_field(id)
			{
				var values = document.getElementById("field_file_"+id).value;
				if(values && values != "0")
				{
					document.getElementById("del_field_file_"+id).style.display = "";
				}
			}
            </script>
            <!-- if($value[ifshare]==1) -->
            <span><button class="gbutton gbutton_min" type="button" onclick="field_openufile('cn_{:$value[sign]}')">附件</button></span>
            <span id="del_field_file_cn_{:$value[sign]}" style="display:none;">
            <button class="gbutton gbutton_min" type="button" onclick="preview_field('cn_{:$value[sign]}')">预览</button>
            <button class="gbutton gbutton_min" type="button" onclick="delete_field('cn_{:$value[sign]}')">删除</button>
            </span>
            <input type="hidden" name="field_text[cn][{:$value[sign]}]" id="field_file_cn_{:$value[sign]}" value="{:$value[field_content]}" />
            <script>
			chk_field('cn_{:$value[sign]}');
            </script>
            <!-- else -->
            
            <!-- if($system[jianti] == on) -->
            <div style="padding-bottom:8px;">
            <span><button class="gbutton gbutton_min" type="button" onclick="field_openufile('cn_{:$value[sign]}')">简体版附件</button></span>
            <span id="del_field_file_cn_{:$value[sign]}" style="display:none;">
            <button class="gbutton gbutton_min" type="button" onclick="preview_field('cn_{:$value[sign]}')">预览</button>
            <button class="gbutton gbutton_min" type="button" onclick="delete_field('cn_{:$value[sign]}')">删除</button>
            </span>
            <input type="hidden" name="field_text[cn][{:$value[sign]}]" id="field_file_cn_{:$value[sign]}" value="{:$value[field_content]}" />
            <script>
			chk_field('cn_{:$value[sign]}');
            </script>
            </div>
            <!-- end -->
            <!-- if($system[english] == on) -->
            <div style="padding-bottom:8px;">
            <span><button class="gbutton gbutton_min" type="button" onclick="field_openufile('en_{:$value[sign]}')">英文版附件</button></span>
            <span id="del_field_file_en_{:$value[sign]}" style="display:none;">
            <button class="gbutton gbutton_min" type="button" onclick="preview_field('en_{:$value[sign]}')">预览</button>
            <button class="gbutton gbutton_min" type="button" onclick="delete_field('en_{:$value[sign]}')">删除</button>
            </span>
            <input type="hidden" name="field_text[en][{:$value[sign]}]" id="field_file_en_{:$value[sign]}" value="{:$value[field_content_en]}" />
            <script>
			chk_field('en_{:$value[sign]}');
            </script>
            </div>
            <!-- end -->
            <!-- if($system[fanti] == on) -->
            <div style="padding-bottom:8px;">
            <span><button class="gbutton gbutton_min" type="button" onclick="field_openufile('ft_{:$value[sign]}')">繁体版附件</button></span>
            <span id="del_field_file_ft_{:$value[sign]}" style="display:none;">
            <button class="gbutton gbutton_min" type="button" onclick="preview_field('ft_{:$value[sign]}')">预览</button>
            <button class="gbutton gbutton_min" type="button" onclick="delete_field('ft_{:$value[sign]}')">删除</button>
            </span>
            <input type="hidden" name="field_text[ft][{:$value[sign]}]" id="field_file_ft_{:$value[sign]}" value="{:$value[field_content_ft]}" />
            <script>
			chk_field('ft_{:$value[sign]}');
            </script>
            </div>
            <!-- end -->
            <!-- end -->
            <!--附件-->
            
            <!-- end -->
            
            <!-- if($value[note]) -->&nbsp;<span style="color:red;">[提示：{:$value[note]}]</span><!-- end -->
          </td>
        </tr>
        <!-- end -->
        </table>
      </div><!--field-->
      <!-- end -->
      
      <div id="tabseo" class="tabdiv">
        <table class="ctable">
          <!-- if($system[jianti]==on) -->
          <tr>
            <td class="left">中文网站标题：</td>
            <td class="right"><input class="ginput ginput_ful" type="text" name="meta_title" id="meta_title" value="{:$rs[meta_title]}" /></td>
          </tr>
          <tr>
            <td class="left">中文网站关键字：</td>
            <td class="right"><input class="ginput ginput_ful" type="text" name="meta_keywords" id="meta_keywords"  value="{:$rs[meta_keywords]}" /></td>
            </tr>
          <tr>
            <td class="left">中文网站描述：</td>
            <td class="right"><input class="ginput ginput_ful" type="text" name="meta_description" id="meta_description"  value="{:$rs[meta_description]}" /></td>
          </tr>
          <!-- end -->
          <!-- if($system[english]==on) -->
          <tr>
            <td class="left">英文网站标题：</td>
            <td class="right"><input class="ginput ginput_ful" type="text" name="meta_title_en" id="meta_title_en" value="{:$rs[meta_title_en]}" /></td>
          </tr>
          <tr>
            <td class="left">英文网站关键字：</td>
            <td class="right"><input class="ginput ginput_ful" type="text" name="meta_keywords_en" id="meta_keywords_en"  value="{:$rs[meta_keywords_en]}" /></td>
          </tr>
          <tr>
            <td class="left">英文网站描述：</td>
            <td class="right"><input class="ginput ginput_ful" type="text" name="meta_description_en" id="meta_description_en"  value="{:$rs[meta_description_en]}" /></td>
          </tr>
          <!-- end -->
          <!-- if($system[fanti]==on) -->
          <tr>
            <td class="left">繁体网站标题：</td>
            <td class="right"><input class="ginput ginput_ful" type="text" name="meta_title_ft" id="meta_title_ft" value="{:$rs[meta_title_ft]}" /></td>
          </tr>
          <tr>
            <td class="left">繁体网站关键字：</td>
            <td class="right"><input class="ginput ginput_ful" type="text" name="meta_keywords_ft" id="meta_keywords_ft"  value="{:$rs[meta_keywords_ft]}" /></td>
          </tr>
          <tr>
            <td class="left">繁体网站描述：</td>
            <td class="right"><input class="ginput ginput_ful" type="text" name="meta_description_ft" id="meta_description_ft"  value="{:$rs[meta_description_ft]}" /></td>
          </tr>
          <!-- end -->
        </table>
      </div><!--tabseo-->
      
      <!-- if($group[is_chain]) -->
      <div id="tabchain" class="tabdiv">
        <script src="js/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
		<script src="js/idrag.js" type="text/javascript"></script>
        <script>
		function chain_show(id)
		{
			$.ajax({
				type: "POST",
				url: "{:$mainlink}?file=msg&act=ajax&sysgroupid={:$sysgroupid}&selfid={:$id}",
				data: "cateid="+id+"&r="+Math.random(100000),
				success: function(msg){
					$("#show_check_box").html(msg);
				}
			});
		}
		
		function chain_add(id,src,subject)
		{
			flag = false;
			var clist = document.getElementById("module_list").getElementsByTagName("input");
			for(i=0;i<clist.length;i++){
				if(clist[i].value == id)
				{
					flag = true
				}
			}
			if(flag)
			{
				$("#chain_m"+id).remove();
			}
			else
			{
				html = '<div id="chain_m'+id+'" class="modules modules_chain"><div class="bor"><div class="pad2"><div class="m_move"><input type="hidden" name="chainid[]" value="'+id+'" /><div class="pic"><img src="'+src+'" /></div><div class="tit">'+subject+'</div><div class="chain_close"><a href="javascript:void(0)" onclick="chain_remove(\''+id+'\')">[删除]</a></div></div></div></div></div>';
				$("#module_list").append(html);
			}
		}
		
		function chain_remove(id)
		{
			$("#chain_m"+id).remove();
		}
        </script>
        
        <div class="chain_list">
          <div id="module_list">
            <!-- if($chainlist) -->
            <!-- $chainlist AS $key=>$value -->
            <div id="chain_m{:$value[id]}" class="modules modules_chain"><div class="bor"><div class="pad2"><div class="m_move"><input type="hidden" name="chainid[]" value="{:$value[id]}" /><div class="pic"><img src="{:$value[folder]}{:$value[thumbfile]}" /></div><div class="tit">{:$value[subject]}</div><div class="chain_close"><a href="javascript:void(0)" onclick="chain_remove('{:$value[id]}')">[删除]</a></div></div></div></div></div>
            <!-- end -->
            <!-- end -->
          </div><!--module_list-->
        </div><!--chain_list-->
        
        <select onchange="chain_show(this.value)">
          <option value="">请选择附加信息分类</option>
          <!-- $chaincatelist AS $key=>$value -->
          <option value="{:$value[id]}">{:$value[space]}{:$value[catename]}</option>
          <!-- end -->
        </select>
        <div id="show_check_box"></div>
      </div><!--tabchain-->
      <!-- end -->
    </div>
  </div><!--content_box-->
  
  <div class="gbutton_div"><button type="submit" class="gbutton gbutton_dblue gbutton_add creat_button"><!-- if($act=="add") -->添加<!-- else -->保存<!-- end --></button> &nbsp; <button type="button" class="gbutton gbutton_add" onclick="qgurl('{:$mainlink}?file=msg&act=list&sysgroupid={:$sysgroupid}{if($cateid)}&cateid={:$cateid}{end}')">返回</button> &nbsp; <span class="show_step" style="color:red;"><img src="images/loading.gif" style="visibility:hidden;" /></span></div>
  </form>
</div><!--page_pad-->

<script type="text/javascript">
<!-- if($group[is_thumb]) -->
function qg_openthumb(id)
{
	if(!id){id="";}
	var values = document.getElementById("thumb"+id).value;
	var url = "{:$mainlink}?file=open.addthumb"+id+"&act=add&values=" + values + "&sysgroupid={:$sysgroupid}";
	qg_open(url,"540");
}
function preview_thumb(id)
{
	if(!id){id="";}
	var values = document.getElementById("thumb"+id).value;
	var url = "{:$mainlink}?file=open.viewpic&id=" + values + "&type=thumb";
	qg_open(url,"540");
}
function delete_thumb(id)
{
	if(!id){id="";}
	document.getElementById("thumb"+id).value = "";
	document.getElementById("del_thumb"+id).style.display = "none";
	document.getElementById("rsdimg"+id).src = "";
	document.getElementById("rsdimg"+id).style.height = "0";
}
<!-- end -->

function chk_thumb()
{
	<!-- if($group[is_thumb]) -->
	var values = document.getElementById("thumb").value;
	if(values && values != "0")
	{
		document.getElementById("del_thumb").style.display = "";
	}
	
	var values2 = document.getElementById("thumb2").value;
	if(values2 && values2 != "0")
	{
		document.getElementById("del_thumb2").style.display = "";
	}
	
	var values3 = document.getElementById("thumb3").value;
	if(values3 && values3 != "0")
	{
		document.getElementById("del_thumb3").style.display = "";
	}
	<!-- end -->
}
chk_thumb();
</script>

<script type="text/javascript">
function chkadd(o)
{
	<!-- if($_SESSION[admin][editorid]==1) -->
	<!-- if($system[jianti] == on) -->
	document.getElementById("content").value=UE.getEditor('myEditor').getContent();
	<!-- end -->
	<!-- if($system[english] == on) -->
	document.getElementById("content_en").value=UE.getEditor('myEditor_en').getContent();
	<!-- end -->
	<!-- if($system[fanti] == on) -->
	document.getElementById("content_ft").value=UE.getEditor('myEditor_ft').getContent();
	<!-- end -->
	<!-- end -->
	
	<!-- if($system[jianti] == on) -->
	if(!o.subject.value)
	{
		tip_msg('标题不能为空');
		return false;
	}
	<!-- end -->
	if(!o.cateid.value || o.cateid.value==0)
	{
		tip_msg("分类ID不能为空或0！");
		return false;
	}
	$(".show_step").html("<img src='images/loading.gif' border='0' align='absmiddle'> 正在保存数据，如果网页没有动静请刷新...");
	$(".creat_button").attr("disabled","disabled");
}
</script>

<!-- inc:frame.bottom -->